import type { AddressItem } from "@/types/goods";
import { defineStore } from "pinia";
import { ref } from "vue";

export const useAddressStore = defineStore('address', () => {
  const address = ref<AddressItem>()
  const selectedChangeAddress = (val: AddressItem) => {
    address.value = val
  }
  return {
    address,
    selectedChangeAddress
  }
}
)